package cn.wzy.exception.exception;

public class GlobalException extends RuntimeException{
    private Long errorCode;

    public Long getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Long errorCode) {
        this.errorCode = errorCode;
    }

    public GlobalException() {
        super();
    }

    public GlobalException(String message,Long errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public GlobalException(String message, Throwable cause,Long errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public GlobalException(Throwable cause,Long errorCode) {
        super(cause);
        this.errorCode = errorCode;
    }

    protected GlobalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace,Long errorCode) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errorCode = errorCode;
    }
    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message, Throwable cause) {
        super(message, cause);
    }

    public GlobalException(Throwable cause) {
        super(cause);
    }

    protected GlobalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
